package com.zhaiweijia.eurekaconsumerfeign.service;

import com.zhaiweijia.dto.UserDto;
import com.zhaiweijia.vo.ResultEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "EUREKA-PRODUCER1",fallbackFactory=UserServiceHystrix.class)
public interface UserService {

    @RequestMapping("/user/list")
    public ResultEntity getUserList(@RequestBody UserDto userDto);


}
